Skip to content

[php-wasm-logger] Remove unnecessary @php-wasm/node-polyfills dependency#3471

Closed
mho22 wants to merge 1 commit intotrunkfrom
remove-node-polyfill-from-php-wasm-logger
Closed

[php-wasm-logger] Remove unnecessary @php-wasm/node-polyfills dependency#3471
mho22 wants to merge 1 commit intotrunkfrom
remove-node-polyfill-from-php-wasm-logger

Conversation

@mho22
Copy link
Copy Markdown
Collaborator

@mho22 mho22 commented Apr 6, 2026

Motivation for the change, related issues

The @php-wasm/logger package imports @php-wasm/node-polyfills solely for the CustomEvent polyfill (used in log-event.ts and collect-php-logs.ts). However, CustomEvent has been a native global since Node.js v19, and this project requires Node.js >= 20.10.0. The import is dead weight — it pulls in unnecessary polyfills (File, Blob, etc.) that the logger never uses.

Implementation details

  • Removed the import @php-wasm/node-polyfills side-effect import from packages/php-wasm/logger/src/index.ts
  • The @php-wasm/node-polyfills dependency in the dist package.json is auto-generated during build and will be dropped automatically.

Testing Instructions (or ideally a Blueprint)

CI

@mho22 mho22 added [Package][@php-wasm] Logger dependencies Pull requests that update a dependency file labels Apr 6, 2026
@mho22 mho22 closed this Apr 9, 2026
@mho22 mho22 deleted the remove-node-polyfill-from-php-wasm-logger branch April 9, 2026 12:55
@ashfame
Copy link
Copy Markdown
Member

ashfame commented Apr 9, 2026

@mho22 uh-oh, what happened here? Not fit to merge? Follow up PR? Best to leave a comment :)

@ashfame
Copy link
Copy Markdown
Member

ashfame commented Apr 9, 2026

Closed in favor of #3476

@mho22
Copy link
Copy Markdown
Collaborator Author

mho22 commented Apr 9, 2026

@ashfame Thanks, I was still working on the #3476 one but I forgot to comment this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file [Package][@php-wasm] Logger

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants